package com.varian.redis.operation;

import lombok.Getter;

import java.util.concurrent.TimeUnit;

/**
 * @author ben
 * @since 2024/9/29
 */
@Getter
public class VarianCacheOperation extends AbstractVarianOperation {

    private final String unless;

    private final long timeout;

    private final TimeUnit unit;


    public VarianCacheOperation(String cacheName, String key, String condition, String unless, long timeout, TimeUnit unit) {
        super(cacheName, key, condition);
        this.unless = unless;
        this.timeout = timeout;
        this.unit = unit;
    }
}
